Integrand size = 33, antiderivative size = 214 \[ \int \cos ^2(c+d x) (a+b \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {1}{16} \left (b^2 (6 A+5 C)+a^2 (8 A+6 C)\right ) x+\frac {2 a b (5 A+4 C) \sin (c+d x)}{5 d}+\frac {\left (b^2 (6 A+5 C)+a^2 (8 A+6 C)\right ) \cos (c+d x) \sin (c+d x)}{16 d}+\frac {\left (2 a^2 C+b^2 (6 A+5 C)\right ) \cos ^3(c+d x) \sin (c+d x)}{24 d}+\frac {a b C \cos ^4(c+d x) \sin (c+d x)}{15 d}+\frac {C \cos ^3(c+d x) (a+b \cos (c+d x))^2 \sin (c+d x)}{6 d}-\frac {2 a b (5 A+4 C) \sin ^3(c+d x)}{15 d} \]
1/16*(b^2*(6*A+5*C)+a^2*(8*A+6*C))*x+2/5*a*b*(5*A+4*C)*sin(d*x+c)/d+1/16*( b^2*(6*A+5*C)+a^2*(8*A+6*C))*cos(d*x+c)*sin(d*x+c)/d+1/24*(2*a^2*C+b^2*(6* A+5*C))*cos(d*x+c)^3*sin(d*x+c)/d+1/15*a*b*C*cos(d*x+c)^4*sin(d*x+c)/d+1/6 *C*cos(d*x+c)^3*(a+b*cos(d*x+c))^2*sin(d*x+c)/d-2/15*a*b*(5*A+4*C)*sin(d*x +c)^3/d
Time = 2.05 (sec) , antiderivative size = 160, normalized size of antiderivative = 0.75 \[ \int \cos ^2(c+d x) (a+b \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {60 \left (b^2 (6 A+5 C)+a^2 (8 A+6 C)\right ) (c+d x)+240 a b (6 A+5 C) \sin (c+d x)+15 \left (16 a^2 (A+C)+b^2 (16 A+15 C)\right ) \sin (2 (c+d x))+40 a b (4 A+5 C) \sin (3 (c+d x))+15 \left (2 A b^2+2 a^2 C+3 b^2 C\right ) \sin (4 (c+d x))+24 a b C \sin (5 (c+d x))+5 b^2 C \sin (6 (c+d x))}{960 d} \]
(60*(b^2*(6*A + 5*C) + a^2*(8*A + 6*C))*(c + d*x) + 240*a*b*(6*A + 5*C)*Si n[c + d*x] + 15*(16*a^2*(A + C) + b^2*(16*A + 15*C))*Sin[2*(c + d*x)] + 40 *a*b*(4*A + 5*C)*Sin[3*(c + d*x)] + 15*(2*A*b^2 + 2*a^2*C + 3*b^2*C)*Sin[4 *(c + d*x)] + 24*a*b*C*Sin[5*(c + d*x)] + 5*b^2*C*Sin[6*(c + d*x)])/(960*d )
Time = 1.09 (sec) , antiderivative size = 198, normalized size of antiderivative = 0.93, number of steps used = 15, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.424, Rules used = {3042, 3529, 3042, 3512, 3042, 3502, 27, 3042, 3227, 3042, 3113, 2009, 3115, 24}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^2(c+d x) (a+b \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^2 \left (A+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 3529 |
\(\displaystyle \frac {1}{6} \int \cos ^2(c+d x) (a+b \cos (c+d x)) \left (2 a C \cos ^2(c+d x)+b (6 A+5 C) \cos (c+d x)+3 a (2 A+C)\right )dx+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{6} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right ) \left (2 a C \sin \left (c+d x+\frac {\pi }{2}\right )^2+b (6 A+5 C) \sin \left (c+d x+\frac {\pi }{2}\right )+3 a (2 A+C)\right )dx+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3512 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \int \cos ^2(c+d x) \left (15 (2 A+C) a^2+12 b (5 A+4 C) \cos (c+d x) a+5 \left (2 C a^2+b^2 (6 A+5 C)\right ) \cos ^2(c+d x)\right )dx+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (15 (2 A+C) a^2+12 b (5 A+4 C) \sin \left (c+d x+\frac {\pi }{2}\right ) a+5 \left (2 C a^2+b^2 (6 A+5 C)\right ) \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3502 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {1}{4} \int 3 \cos ^2(c+d x) \left (5 \left ((8 A+6 C) a^2+b^2 (6 A+5 C)\right )+16 a b (5 A+4 C) \cos (c+d x)\right )dx+\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {3}{4} \int \cos ^2(c+d x) \left (5 \left ((8 A+6 C) a^2+b^2 (6 A+5 C)\right )+16 a b (5 A+4 C) \cos (c+d x)\right )dx+\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {3}{4} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (5 \left ((8 A+6 C) a^2+b^2 (6 A+5 C)\right )+16 a b (5 A+4 C) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx+\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {3}{4} \left (5 \left (a^2 (8 A+6 C)+b^2 (6 A+5 C)\right ) \int \cos ^2(c+d x)dx+16 a b (5 A+4 C) \int \cos ^3(c+d x)dx\right )+\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {3}{4} \left (5 \left (a^2 (8 A+6 C)+b^2 (6 A+5 C)\right ) \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx+16 a b (5 A+4 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^3dx\right )+\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3113 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {3}{4} \left (5 \left (a^2 (8 A+6 C)+b^2 (6 A+5 C)\right ) \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx-\frac {16 a b (5 A+4 C) \int \left (1-\sin ^2(c+d x)\right )d(-\sin (c+d x))}{d}\right )+\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {3}{4} \left (5 \left (a^2 (8 A+6 C)+b^2 (6 A+5 C)\right ) \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx-\frac {16 a b (5 A+4 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )+\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {3}{4} \left (5 \left (a^2 (8 A+6 C)+b^2 (6 A+5 C)\right ) \left (\frac {\int 1dx}{2}+\frac {\sin (c+d x) \cos (c+d x)}{2 d}\right )-\frac {16 a b (5 A+4 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )+\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{5} \left (\frac {5 \left (2 a^2 C+b^2 (6 A+5 C)\right ) \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3}{4} \left (5 \left (a^2 (8 A+6 C)+b^2 (6 A+5 C)\right ) \left (\frac {\sin (c+d x) \cos (c+d x)}{2 d}+\frac {x}{2}\right )-\frac {16 a b (5 A+4 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )\right )+\frac {2 a b C \sin (c+d x) \cos ^4(c+d x)}{5 d}\right )+\frac {C \sin (c+d x) \cos ^3(c+d x) (a+b \cos (c+d x))^2}{6 d}\) |
(C*Cos[c + d*x]^3*(a + b*Cos[c + d*x])^2*Sin[c + d*x])/(6*d) + ((2*a*b*C*C os[c + d*x]^4*Sin[c + d*x])/(5*d) + ((5*(2*a^2*C + b^2*(6*A + 5*C))*Cos[c + d*x]^3*Sin[c + d*x])/(4*d) + (3*(5*(b^2*(6*A + 5*C) + a^2*(8*A + 6*C))*( x/2 + (Cos[c + d*x]*Sin[c + d*x])/(2*d)) - (16*a*b*(5*A + 4*C)*(-Sin[c + d *x] + Sin[c + d*x]^3/3))/d))/4)/5)/6
3.6.31.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp and[(1 - x^2)^((n - 1)/2), x], x], x, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b Int [(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Co s[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Simp[1/(b*(m + 2)) Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && !LtQ[m, -1]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f _.)*(x_)]^2), x_Symbol] :> Simp[(-C)*d*Cos[e + f*x]*Sin[e + f*x]*((a + b*Si n[e + f*x])^(m + 1)/(b*f*(m + 3))), x] + Simp[1/(b*(m + 3)) Int[(a + b*Si n[e + f*x])^m*Simp[a*C*d + A*b*c*(m + 3) + b*(B*c*(m + 3) + d*(C*(m + 2) + A*(m + 3)))*Sin[e + f*x] - (2*a*C*d - b*(c*C + B*d)*(m + 3))*Sin[e + f*x]^2 , x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && !LtQ[m, -1]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] : > Simp[(-C)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(m + n + 2))), x] + Simp[1/(d*(m + n + 2)) Int[(a + b*Sin[e + f*x ])^(m - 1)*(c + d*Sin[e + f*x])^n*Simp[a*A*d*(m + n + 2) + C*(b*c*m + a*d*( n + 1)) + (A*b*d*(m + n + 2) - C*(a*c - b*d*(m + n + 1)))*Sin[e + f*x] + C* (a*d*m - b*c*(m + 1))*Sin[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f , A, C, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m, 0] && !(IGtQ[n, 0] && ( !IntegerQ[m] || (EqQ[a, 0] && NeQ[c, 0])))
Time = 8.04 (sec) , antiderivative size = 152, normalized size of antiderivative = 0.71
method | result | size |
parallelrisch | \(\frac {\left (\left (240 A +225 C \right ) b^{2}+240 a^{2} \left (A +C \right )\right ) \sin \left (2 d x +2 c \right )+\left (\left (30 A +45 C \right ) b^{2}+30 a^{2} C \right ) \sin \left (4 d x +4 c \right )+160 b \left (A +\frac {5 C}{4}\right ) a \sin \left (3 d x +3 c \right )+24 C a b \sin \left (5 d x +5 c \right )+5 b^{2} C \sin \left (6 d x +6 c \right )+1440 \left (A +\frac {5 C}{6}\right ) b a \sin \left (d x +c \right )+480 x \left (\left (\frac {3 A}{4}+\frac {5 C}{8}\right ) b^{2}+a^{2} \left (A +\frac {3 C}{4}\right )\right ) d}{960 d}\) | \(152\) |
parts | \(\frac {\left (A \,b^{2}+a^{2} C \right ) \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )}{d}+\frac {A \,a^{2} \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}+\frac {b^{2} C \left (\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )}{d}+\frac {2 A a b \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3 d}+\frac {2 C a b \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5 d}\) | \(189\) |
derivativedivides | \(\frac {b^{2} C \left (\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )+\frac {2 C a b \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+A \,b^{2} \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+a^{2} C \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {2 A a b \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}+A \,a^{2} \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}\) | \(209\) |
default | \(\frac {b^{2} C \left (\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )+\frac {2 C a b \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+A \,b^{2} \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+a^{2} C \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {2 A a b \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}+A \,a^{2} \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}\) | \(209\) |
risch | \(\frac {a^{2} x A}{2}+\frac {3 x A \,b^{2}}{8}+\frac {3 a^{2} C x}{8}+\frac {5 b^{2} C x}{16}+\frac {3 \sin \left (d x +c \right ) A a b}{2 d}+\frac {5 \sin \left (d x +c \right ) C a b}{4 d}+\frac {b^{2} C \sin \left (6 d x +6 c \right )}{192 d}+\frac {C a b \sin \left (5 d x +5 c \right )}{40 d}+\frac {\sin \left (4 d x +4 c \right ) A \,b^{2}}{32 d}+\frac {\sin \left (4 d x +4 c \right ) a^{2} C}{32 d}+\frac {3 \sin \left (4 d x +4 c \right ) b^{2} C}{64 d}+\frac {\sin \left (3 d x +3 c \right ) A a b}{6 d}+\frac {5 \sin \left (3 d x +3 c \right ) C a b}{24 d}+\frac {\sin \left (2 d x +2 c \right ) A \,a^{2}}{4 d}+\frac {\sin \left (2 d x +2 c \right ) A \,b^{2}}{4 d}+\frac {\sin \left (2 d x +2 c \right ) a^{2} C}{4 d}+\frac {15 \sin \left (2 d x +2 c \right ) b^{2} C}{64 d}\) | \(253\) |
norman | \(\frac {\left (\frac {1}{2} A \,a^{2}+\frac {3}{8} A \,b^{2}+\frac {3}{8} a^{2} C +\frac {5}{16} b^{2} C \right ) x +\left (3 A \,a^{2}+\frac {9}{4} A \,b^{2}+\frac {9}{4} a^{2} C +\frac {15}{8} b^{2} C \right ) x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (3 A \,a^{2}+\frac {9}{4} A \,b^{2}+\frac {9}{4} a^{2} C +\frac {15}{8} b^{2} C \right ) x \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (10 A \,a^{2}+\frac {15}{2} A \,b^{2}+\frac {15}{2} a^{2} C +\frac {25}{4} b^{2} C \right ) x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (\frac {1}{2} A \,a^{2}+\frac {3}{8} A \,b^{2}+\frac {3}{8} a^{2} C +\frac {5}{16} b^{2} C \right ) x \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (\frac {15}{2} A \,a^{2}+\frac {45}{8} A \,b^{2}+\frac {45}{8} a^{2} C +\frac {75}{16} b^{2} C \right ) x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (\frac {15}{2} A \,a^{2}+\frac {45}{8} A \,b^{2}+\frac {45}{8} a^{2} C +\frac {75}{16} b^{2} C \right ) x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {\left (8 A \,a^{2}-32 A a b +10 A \,b^{2}+10 a^{2} C -32 C a b +11 b^{2} C \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d}+\frac {\left (8 A \,a^{2}+32 A a b +10 A \,b^{2}+10 a^{2} C +32 C a b +11 b^{2} C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d}-\frac {\left (40 A \,a^{2}-480 A a b +10 A \,b^{2}+10 a^{2} C -416 C a b +75 b^{2} C \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 d}+\frac {\left (40 A \,a^{2}+480 A a b +10 A \,b^{2}+10 a^{2} C +416 C a b +75 b^{2} C \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 d}-\frac {\left (72 A \,a^{2}-352 A a b +42 A \,b^{2}+42 a^{2} C -224 C a b -5 b^{2} C \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 d}+\frac {\left (72 A \,a^{2}+352 A a b +42 A \,b^{2}+42 a^{2} C +224 C a b -5 b^{2} C \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}\) | \(577\) |
1/960*(((240*A+225*C)*b^2+240*a^2*(A+C))*sin(2*d*x+2*c)+((30*A+45*C)*b^2+3 0*a^2*C)*sin(4*d*x+4*c)+160*b*(A+5/4*C)*a*sin(3*d*x+3*c)+24*C*a*b*sin(5*d* x+5*c)+5*b^2*C*sin(6*d*x+6*c)+1440*(A+5/6*C)*b*a*sin(d*x+c)+480*x*((3/4*A+ 5/8*C)*b^2+a^2*(A+3/4*C))*d)/d
Time = 0.30 (sec) , antiderivative size = 159, normalized size of antiderivative = 0.74 \[ \int \cos ^2(c+d x) (a+b \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {15 \, {\left (2 \, {\left (4 \, A + 3 \, C\right )} a^{2} + {\left (6 \, A + 5 \, C\right )} b^{2}\right )} d x + {\left (40 \, C b^{2} \cos \left (d x + c\right )^{5} + 96 \, C a b \cos \left (d x + c\right )^{4} + 32 \, {\left (5 \, A + 4 \, C\right )} a b \cos \left (d x + c\right )^{2} + 10 \, {\left (6 \, C a^{2} + {\left (6 \, A + 5 \, C\right )} b^{2}\right )} \cos \left (d x + c\right )^{3} + 64 \, {\left (5 \, A + 4 \, C\right )} a b + 15 \, {\left (2 \, {\left (4 \, A + 3 \, C\right )} a^{2} + {\left (6 \, A + 5 \, C\right )} b^{2}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{240 \, d} \]
1/240*(15*(2*(4*A + 3*C)*a^2 + (6*A + 5*C)*b^2)*d*x + (40*C*b^2*cos(d*x + c)^5 + 96*C*a*b*cos(d*x + c)^4 + 32*(5*A + 4*C)*a*b*cos(d*x + c)^2 + 10*(6 *C*a^2 + (6*A + 5*C)*b^2)*cos(d*x + c)^3 + 64*(5*A + 4*C)*a*b + 15*(2*(4*A + 3*C)*a^2 + (6*A + 5*C)*b^2)*cos(d*x + c))*sin(d*x + c))/d
Leaf count of result is larger than twice the leaf count of optimal. 592 vs. \(2 (201) = 402\).
Time = 0.38 (sec) , antiderivative size = 592, normalized size of antiderivative = 2.77 \[ \int \cos ^2(c+d x) (a+b \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\begin {cases} \frac {A a^{2} x \sin ^{2}{\left (c + d x \right )}}{2} + \frac {A a^{2} x \cos ^{2}{\left (c + d x \right )}}{2} + \frac {A a^{2} \sin {\left (c + d x \right )} \cos {\left (c + d x \right )}}{2 d} + \frac {4 A a b \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac {2 A a b \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} + \frac {3 A b^{2} x \sin ^{4}{\left (c + d x \right )}}{8} + \frac {3 A b^{2} x \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{4} + \frac {3 A b^{2} x \cos ^{4}{\left (c + d x \right )}}{8} + \frac {3 A b^{2} \sin ^{3}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{8 d} + \frac {5 A b^{2} \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{8 d} + \frac {3 C a^{2} x \sin ^{4}{\left (c + d x \right )}}{8} + \frac {3 C a^{2} x \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{4} + \frac {3 C a^{2} x \cos ^{4}{\left (c + d x \right )}}{8} + \frac {3 C a^{2} \sin ^{3}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{8 d} + \frac {5 C a^{2} \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{8 d} + \frac {16 C a b \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {8 C a b \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac {2 C a b \sin {\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} + \frac {5 C b^{2} x \sin ^{6}{\left (c + d x \right )}}{16} + \frac {15 C b^{2} x \sin ^{4}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{16} + \frac {15 C b^{2} x \sin ^{2}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{16} + \frac {5 C b^{2} x \cos ^{6}{\left (c + d x \right )}}{16} + \frac {5 C b^{2} \sin ^{5}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{16 d} + \frac {5 C b^{2} \sin ^{3}{\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{6 d} + \frac {11 C b^{2} \sin {\left (c + d x \right )} \cos ^{5}{\left (c + d x \right )}}{16 d} & \text {for}\: d \neq 0 \\x \left (A + C \cos ^{2}{\left (c \right )}\right ) \left (a + b \cos {\left (c \right )}\right )^{2} \cos ^{2}{\left (c \right )} & \text {otherwise} \end {cases} \]
Piecewise((A*a**2*x*sin(c + d*x)**2/2 + A*a**2*x*cos(c + d*x)**2/2 + A*a** 2*sin(c + d*x)*cos(c + d*x)/(2*d) + 4*A*a*b*sin(c + d*x)**3/(3*d) + 2*A*a* b*sin(c + d*x)*cos(c + d*x)**2/d + 3*A*b**2*x*sin(c + d*x)**4/8 + 3*A*b**2 *x*sin(c + d*x)**2*cos(c + d*x)**2/4 + 3*A*b**2*x*cos(c + d*x)**4/8 + 3*A* b**2*sin(c + d*x)**3*cos(c + d*x)/(8*d) + 5*A*b**2*sin(c + d*x)*cos(c + d* x)**3/(8*d) + 3*C*a**2*x*sin(c + d*x)**4/8 + 3*C*a**2*x*sin(c + d*x)**2*co s(c + d*x)**2/4 + 3*C*a**2*x*cos(c + d*x)**4/8 + 3*C*a**2*sin(c + d*x)**3* cos(c + d*x)/(8*d) + 5*C*a**2*sin(c + d*x)*cos(c + d*x)**3/(8*d) + 16*C*a* b*sin(c + d*x)**5/(15*d) + 8*C*a*b*sin(c + d*x)**3*cos(c + d*x)**2/(3*d) + 2*C*a*b*sin(c + d*x)*cos(c + d*x)**4/d + 5*C*b**2*x*sin(c + d*x)**6/16 + 15*C*b**2*x*sin(c + d*x)**4*cos(c + d*x)**2/16 + 15*C*b**2*x*sin(c + d*x)* *2*cos(c + d*x)**4/16 + 5*C*b**2*x*cos(c + d*x)**6/16 + 5*C*b**2*sin(c + d *x)**5*cos(c + d*x)/(16*d) + 5*C*b**2*sin(c + d*x)**3*cos(c + d*x)**3/(6*d ) + 11*C*b**2*sin(c + d*x)*cos(c + d*x)**5/(16*d), Ne(d, 0)), (x*(A + C*co s(c)**2)*(a + b*cos(c))**2*cos(c)**2, True))
Time = 0.21 (sec) , antiderivative size = 202, normalized size of antiderivative = 0.94 \[ \int \cos ^2(c+d x) (a+b \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {240 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} A a^{2} + 30 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} C a^{2} - 640 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} A a b + 128 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} C a b + 30 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} A b^{2} - 5 \, {\left (4 \, \sin \left (2 \, d x + 2 \, c\right )^{3} - 60 \, d x - 60 \, c - 9 \, \sin \left (4 \, d x + 4 \, c\right ) - 48 \, \sin \left (2 \, d x + 2 \, c\right )\right )} C b^{2}}{960 \, d} \]
1/960*(240*(2*d*x + 2*c + sin(2*d*x + 2*c))*A*a^2 + 30*(12*d*x + 12*c + si n(4*d*x + 4*c) + 8*sin(2*d*x + 2*c))*C*a^2 - 640*(sin(d*x + c)^3 - 3*sin(d *x + c))*A*a*b + 128*(3*sin(d*x + c)^5 - 10*sin(d*x + c)^3 + 15*sin(d*x + c))*C*a*b + 30*(12*d*x + 12*c + sin(4*d*x + 4*c) + 8*sin(2*d*x + 2*c))*A*b ^2 - 5*(4*sin(2*d*x + 2*c)^3 - 60*d*x - 60*c - 9*sin(4*d*x + 4*c) - 48*sin (2*d*x + 2*c))*C*b^2)/d
Time = 0.31 (sec) , antiderivative size = 183, normalized size of antiderivative = 0.86 \[ \int \cos ^2(c+d x) (a+b \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {C b^{2} \sin \left (6 \, d x + 6 \, c\right )}{192 \, d} + \frac {C a b \sin \left (5 \, d x + 5 \, c\right )}{40 \, d} + \frac {1}{16} \, {\left (8 \, A a^{2} + 6 \, C a^{2} + 6 \, A b^{2} + 5 \, C b^{2}\right )} x + \frac {{\left (2 \, C a^{2} + 2 \, A b^{2} + 3 \, C b^{2}\right )} \sin \left (4 \, d x + 4 \, c\right )}{64 \, d} + \frac {{\left (4 \, A a b + 5 \, C a b\right )} \sin \left (3 \, d x + 3 \, c\right )}{24 \, d} + \frac {{\left (16 \, A a^{2} + 16 \, C a^{2} + 16 \, A b^{2} + 15 \, C b^{2}\right )} \sin \left (2 \, d x + 2 \, c\right )}{64 \, d} + \frac {{\left (6 \, A a b + 5 \, C a b\right )} \sin \left (d x + c\right )}{4 \, d} \]
1/192*C*b^2*sin(6*d*x + 6*c)/d + 1/40*C*a*b*sin(5*d*x + 5*c)/d + 1/16*(8*A *a^2 + 6*C*a^2 + 6*A*b^2 + 5*C*b^2)*x + 1/64*(2*C*a^2 + 2*A*b^2 + 3*C*b^2) *sin(4*d*x + 4*c)/d + 1/24*(4*A*a*b + 5*C*a*b)*sin(3*d*x + 3*c)/d + 1/64*( 16*A*a^2 + 16*C*a^2 + 16*A*b^2 + 15*C*b^2)*sin(2*d*x + 2*c)/d + 1/4*(6*A*a *b + 5*C*a*b)*sin(d*x + c)/d
Time = 2.11 (sec) , antiderivative size = 252, normalized size of antiderivative = 1.18 \[ \int \cos ^2(c+d x) (a+b \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {A\,a^2\,x}{2}+\frac {3\,A\,b^2\,x}{8}+\frac {3\,C\,a^2\,x}{8}+\frac {5\,C\,b^2\,x}{16}+\frac {A\,a^2\,\sin \left (2\,c+2\,d\,x\right )}{4\,d}+\frac {A\,b^2\,\sin \left (2\,c+2\,d\,x\right )}{4\,d}+\frac {A\,b^2\,\sin \left (4\,c+4\,d\,x\right )}{32\,d}+\frac {C\,a^2\,\sin \left (2\,c+2\,d\,x\right )}{4\,d}+\frac {C\,a^2\,\sin \left (4\,c+4\,d\,x\right )}{32\,d}+\frac {15\,C\,b^2\,\sin \left (2\,c+2\,d\,x\right )}{64\,d}+\frac {3\,C\,b^2\,\sin \left (4\,c+4\,d\,x\right )}{64\,d}+\frac {C\,b^2\,\sin \left (6\,c+6\,d\,x\right )}{192\,d}+\frac {3\,A\,a\,b\,\sin \left (c+d\,x\right )}{2\,d}+\frac {5\,C\,a\,b\,\sin \left (c+d\,x\right )}{4\,d}+\frac {A\,a\,b\,\sin \left (3\,c+3\,d\,x\right )}{6\,d}+\frac {5\,C\,a\,b\,\sin \left (3\,c+3\,d\,x\right )}{24\,d}+\frac {C\,a\,b\,\sin \left (5\,c+5\,d\,x\right )}{40\,d} \]
(A*a^2*x)/2 + (3*A*b^2*x)/8 + (3*C*a^2*x)/8 + (5*C*b^2*x)/16 + (A*a^2*sin( 2*c + 2*d*x))/(4*d) + (A*b^2*sin(2*c + 2*d*x))/(4*d) + (A*b^2*sin(4*c + 4* d*x))/(32*d) + (C*a^2*sin(2*c + 2*d*x))/(4*d) + (C*a^2*sin(4*c + 4*d*x))/( 32*d) + (15*C*b^2*sin(2*c + 2*d*x))/(64*d) + (3*C*b^2*sin(4*c + 4*d*x))/(6 4*d) + (C*b^2*sin(6*c + 6*d*x))/(192*d) + (3*A*a*b*sin(c + d*x))/(2*d) + ( 5*C*a*b*sin(c + d*x))/(4*d) + (A*a*b*sin(3*c + 3*d*x))/(6*d) + (5*C*a*b*si n(3*c + 3*d*x))/(24*d) + (C*a*b*sin(5*c + 5*d*x))/(40*d)